//
//  CustomerInformation.m
//  Text_ problem
//
//  Created by jiboxue on 13-1-23.
//  Copyright (c) 2013年 jiboxue. All rights reserved.
//
#define usernameMessage @"usernameMessage1"

#import "CustomerInformation.h"

@implementation CustomerInformation

+(void)save:(NSDictionary *)dictionaryMessage
{
    [[NSUserDefaults standardUserDefaults] setObject:dictionaryMessage forKey:usernameMessage];
    [[NSUserDefaults standardUserDefaults] synchronize];
    [[NSNotificationCenter defaultCenter]postNotificationName:USERDEFAULT_WRITEOK object:nil];
}

+ (void)saveUserMessage:(NSDictionary *)userMsg
{
    [[NSUserDefaults standardUserDefaults] setObject:userMsg
                                              forKey:usernameMessage];
    [[NSUserDefaults standardUserDefaults] synchronize];
}

+(NSDictionary *)userMessage
{
    return [[NSUserDefaults standardUserDefaults]objectForKey:usernameMessage];
}
+(void)clear
{
    [[NSUserDefaults standardUserDefaults]removeObjectForKey:usernameMessage];
    [[NSUserDefaults standardUserDefaults] synchronize];
}
@end
